package site.shihuan.helpdesk.im.command;

import site.shihuan.helpdesk.im.message.BaseMessage;
import site.shihuan.helpdesk.im.exception.CommandException;

import javax.websocket.Session;
import java.io.IOException;

/**
 * BaseCommand接口
 *
 * @author 周世焕
 * @Date 2021/2/2 20:24
 */
public interface BaseCommand {

    /**
     * 处理消息
     * @param session
     * @param message
     */
    void execute(Session session, BaseMessage message) throws CommandException, IOException;

}
